
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/index.css">
     <div class="box">
          <div class="bar">
             <div class="bar1">
                <p>请选择画笔颜色</p>
                <span class="black" data-text="黑色"></span>
                <span class="red"  data-text="红色"></span>
                <span class="orange" data-text="橙色"></span>
                <span class="yellow" data-text="黄色"></span>
                <span class="green" data-text="绿色"></span>
                <span class="blue" data-text="蓝色"></span>
             </div>

             <div class="bar2">
                <button class="btn1">清空画布</button>
                  <span>当前所选颜色:  <span class="color-Text">黑色</span> </span>
                  <button class="btn2">橡皮擦</button>
             </div>
          </div>
        <canvas id="canvas" width="500" height="500"></canvas>
    
       <p>绘画完毕点击<a href="" download="/images/image.png">下载</a></p> 
    </div>
    

</head>
<body>
    <script src="./js/index.js"></script>
</body>
</html>